#include <bitset>
#include <cstdio>

const int N = 100;
int n, m;
std::bitset<N * N> a[N * N];

int main() {
#ifndef ONLINE_JUDGE
#ifdef LOCAL
  freopen("testdata.in", "r", stdin);
  freopen("testdata.out", "w", stdout);
#else
  freopen("P3164 [CQOI2014]和谐矩阵.in", "r", stdin);
  freopen("P3164 [CQOI2014]和谐矩阵.out", "w", stdout);
#endif
#endif

  scanf("%d%d", &n, &m);
  for (int i = 1; i <= n; ++i) {
    for (int j = 1; j <= m; ++j) {
    }
  }
  return 0;
}